package com.qfedu.fy.dao;

import com.qfedu.fy.dto.UserDetailDto;
import com.qfedu.fy.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ......................我佛慈悲......................
 * _oo0oo_
 * o8888888o
 * 88" . "88
 * (| -_- |)
 * 0\  =  /0
 * ___/`---'\___
 * .' \\|     |// '.
 * / \\|||  :  |||// \
 * / _||||| -卍-|||||- \
 * |   | \\\  -  /// |   |
 * | \_|  ''\---/''  |_/ |
 * \  .-\__  '-'  ___/-. /
 * ___'. .'  /--.--\  `. .'___
 * ."" '<  `.___\_<|>_/___.' >' "".
 * | | :  `- \`.;`\ _ /`;.`/ - ` : | |
 * \  \ `_.   \_ __\ /__ _/   .-` /  /
 * =====`-.____`.___ \_____/___.-`___.-'=====
 * `=---='
 * ..............佛祖保佑无BUG..................
 *
 * @author mxj
 * @date 2022/6/17 9:24
 */
public interface UserDao {

    int add(User user);

    List<UserDetailDto> selectAll();

    int update(User user);
    int del(int id);

    User selectByName(String name);
    /**
     * 修改密码*/
    int updatePass(@Param("id") int id, @Param("newpass")String newpass, @Param("oldpass") String oldpass);

}
